package com.tensquare.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 活动对象 tb_gathering
 * 
 * @author hbxfwf
 * @date 2021-08-25
 */
public class Gathering extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private String id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String name;

    /** 大会简介 */
    @Excel(name = "大会简介")
    private String summary;

    /** 详细说明 */
    @Excel(name = "详细说明")
    private String detail;

    /** 主办方 */
    @Excel(name = "主办方")
    private String sponsor;

    /** 活动图片 */
    @Excel(name = "活动图片")
    private String image;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endtime;

    /** 举办地点 */
    @Excel(name = "举办地点")
    private String address;

    /** 报名截止 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名截止", width = 30, dateFormat = "yyyy-MM-dd")
    private Date enrolltime;

    /** 是否可见 */
    @Excel(name = "是否可见")
    private String state;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }
    public void setDetail(String detail) 
    {
        this.detail = detail;
    }

    public String getDetail() 
    {
        return detail;
    }
    public void setSponsor(String sponsor) 
    {
        this.sponsor = sponsor;
    }

    public String getSponsor() 
    {
        return sponsor;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setEndtime(Date endtime) 
    {
        this.endtime = endtime;
    }

    public Date getEndtime() 
    {
        return endtime;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setEnrolltime(Date enrolltime) 
    {
        this.enrolltime = enrolltime;
    }

    public Date getEnrolltime() 
    {
        return enrolltime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("summary", getSummary())
            .append("detail", getDetail())
            .append("sponsor", getSponsor())
            .append("image", getImage())
            .append("starttime", getStarttime())
            .append("endtime", getEndtime())
            .append("address", getAddress())
            .append("enrolltime", getEnrolltime())
            .append("state", getState())
            .append("city", getCity())
            .toString();
    }
}
